<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	
	
	<div class="shopping_lanmu"><?php echo $this->_var['lang']['goods_list']; ?></div>
	<form id="formCart" name="formCart" method="post" action="flow.php">
        <div class="shopping_cup">
            <div class="shopping_cup_lanmu">
				<div class="shopping_cup_lanmu_left"></div>
				<div class="shopping_cup_lanmu_cont">
					<div class="shopping_cup_name" style="margin-left:110px; display:inline;"><?php echo $this->_var['lang']['goods_name']; ?></div>
					<div class="shopping_cup_name" style="margin-left:160px; display:inline;"><?php echo $this->_var['lang']['shop_prices']; ?></div>
					<div class="shopping_cup_name" style="margin-left:105px; display:inline;"><?php echo $this->_var['lang']['number']; ?></div>
					<div class="shopping_cup_name" style="margin-left:110px; display:inline;"><?php echo $this->_var['lang']['subtotal']; ?></div>
					<div class="shopping_cup_name" style="margin-left:100px; display:inline;">积分</div>
					<div class="shopping_cup_name" style="margin-left:80px; display:inline;"><?php echo $this->_var['lang']['handle']; ?></div>
				</div>
				<div class="shopping_cup_lanmu_right"></div>
            </div>
            
            <div class="shopping_cup_neirong">
                <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
                    <div class="shopping_cup_div" id="tr_goods_<?php echo $this->_var['goods']['rec_id']; ?>">
                    
                    <?php if ($this->_var['goods']['is_gift'] != 0): ?>
                    		<?php $this->assign('gift_remark','[赠品]'); ?>
                    <?php else: ?>
                    		<?php $this->assign('gift_remark',''); ?>
                    <?php endif; ?>
                    
                    <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
                    
                        <?php if ($this->_var['show_goods_thumb'] == 1): ?>
                        	<a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><?php echo $this->_var['goods']['goods_name']; ?></a>
                        <?php elseif ($this->_var['show_goods_thumb'] == 2): ?>
                        	<a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" /></a>
                        <?php else: ?>
                            <div class="shopping_cup_div_img">
                            <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" /></a><br />
                            </div>
                            <div class="shopping_cup_div_name">
                            <div class="shopping_cup_div_name_txt">
                            <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank" class="f6"><span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><?php echo $this->_var['goods']['goods_name']; ?></a>
                            </div>
                            
                            <div class="shopping_cup_div_name_txt" style="color:#4f9801;"><?php echo $this->_var['goods']['goods_attr']; ?></div>
                                               
                            </div>
                        <?php endif; ?>
                    
                    <?php elseif ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
                        <a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['goods']['goods_name']; ?><span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><span style="color:#FF0000;">（<?php echo $this->_var['lang']['remark_package']; ?>）</span></a>
                        <div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" style="display:none">
                            <?php $_from = $this->_var['goods']['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods_list');if (count($_from)):
    foreach ($_from AS $this->_var['package_goods_list']):
?>
                                <a href="goods.php?id=<?php echo $this->_var['package_goods_list']['goods_id']; ?>" target="_blank" class="f6"><?php echo $this->_var['package_goods_list']['goods_name']; ?></a><br />
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </div>
                    <?php else: ?>
						<span style="color:#F00"><?php echo $this->_var['gift_remark']; ?></span><?php echo $this->_var['goods']['goods_name']; ?>
                    <?php endif; ?>
                        
                      <div class="shopping_cup_div_price"><?php echo $this->_var['goods']['goods_price']; ?>
                      		<?php if ($this->_var['goods']['is_gift'] != 0): ?>
                            	(活动价)
                            <?php endif; ?>
                      </div>
                      	
                        <?php if ($this->_var['goods']['parent_id'] != 0): ?>
                        	<div class="shopping_cup_div_num">
								<div class="shopping_cup_num_btn"></div> 
                            	<div class="shopping_cup_num_cont"><?php echo $this->_var['goods']['goods_number']; ?></div>
                            </div>
                        <?php else: ?>
                            <?php if ($this->_var['goods']['is_gift'] != 0): ?>
                                <div class="shopping_cup_div_num">
                                    <div class="shopping_cup_num_btn"></div> 
                                    <div class="shopping_cup_num_cont"><?php echo $this->_var['goods']['goods_number']; ?></div>
                                </div> 
                        	<?php else: ?>                                                     
                      	
                            <div class="shopping_cup_div_num">
                                <div class="shopping_cup_num_btn" name="JianName">
                                <a href="javascript:void(0)" onclick="changenum(<?php echo $this->_var['goods']['rec_id']; ?>,-1)"><img src="themes/default/images/jian.gif" /></a>
                                </div>                           
                                <div class="shopping_cup_num_cont">                
                                    <?php if ($this->_var['goods']['goods_id'] > 0): ?>
                                    <input type="text" name="goods_number[<?php echo $this->_var['goods']['rec_id']; ?>]" id="goods_number_<?php echo $this->_var['goods']['rec_id']; ?>" value="<?php echo $this->_var['goods']['goods_number']; ?>" maxLength="2" class="inputBg" style="text-align:center " onchange="change_goods_number(<?php echo $this->_var['goods']['rec_id']; ?>,this.value)" />
                                    <?php else: ?>
                                    <?php echo $this->_var['goods']['goods_number']; ?>
                                    <?php endif; ?>
                                </div>                            
                                <div class="shopping_cup_num_btn" name="JiaName">
                                <a href="javascript:void(0)" onclick="changenum(<?php echo $this->_var['goods']['rec_id']; ?>,1)">
                                <img src="themes/default/images/jia.gif" />
                                </a>
                                </div>
                            </div>
	                        <?php endif; ?>                               
                        <?php endif; ?>                          
                    
                        <div class="shopping_cup_div_xiaoji"  style="color:#4f9801;" id="goods_subtotal_<?php echo $this->_var['goods']['rec_id']; ?>"><?php echo $this->_var['goods']['subtotal']; ?></div>
                        <div class="shopping_cup_div_jifen"  style="color:#4f9801;" id="goods_give_integral_<?php echo $this->_var['goods']['rec_id']; ?>"><?php echo $this->_var['goods']['give_integral']; ?></div>
                        <input type="hidden" name="item_give_integral" value="<?php echo $this->_var['goods']['give_integral']; ?>" />
                        <div class="shopping_cup_div_caozuo"  style="color:#438ecf;">
						<input type="hidden" name="goods_rec_id_<?php echo $this->_var['goods']['rec_id']; ?>" value="<?php echo $this->_var['goods']['rec_id']; ?>" />
                         <!-- <a href="javascript:if (confirm('<?php echo $this->_var['lang']['drop_goods_confirm']; ?>')) location.href='flow.php?step=drop_goods&amp;id=<?php echo $this->_var['goods']['rec_id']; ?>'; " class="f6"><?php echo $this->_var['lang']['drop']; ?></a> -->
						 <a href="javascript:flowcartDeleteConfirm(<?php echo $this->_var['goods']['rec_id']; ?>);" class="f6"><?php echo $this->_var['lang']['drop']; ?></a>                       
                        </div>                           
                    </div>  
                    <div class="shop_cup_zengpin"><?php echo $this->_var['goods']['present_label']; ?><span style="margin-left:15px;"><?php echo strip_tags($this->_var['goods']['goods_present']); ?></span></div> 
               <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>          
            </div>
			<div class="shop_cup_zongjie">
				<div class="shop_cup_zongjie_main">
					<span>购物车小计：</span>
					<span id="shopping_money" style="color:#4c9800;font-size:20px; padding:0px 10px;"><?php echo $this->_var['total']['goods_price']; ?> </span>
				</div>
			</div>
        </div>
                <div class="shop_cup_jiesuan">
                    <div class="jiesuan_left"><a href="./"><< 继续购物 </a> </div>
                    <div class="jiesuan_right">
						<input id="flowcartCheckLogin" type="hidden" value="" />
                        <a <?php if (( $this->_var['goods_list'] | @ count ) == 0): ?> href="javascript:cartalert();" 
						<?php elseif (( $_SESSION['user_id'] == 0 )): ?> href="javascript:flowcartCheckLogin();"
						<?php else: ?> href="flow.php?step=checkout" 
						<?php endif; ?>>
                            <img src="themes/default/images/jiesuan_btn.jpg" alt="checkout" />
                        </a>
                    </div>
                </div>
         
    </form>
  
	

		